package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.areaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 * 查询省市区
 * @Auther: zhlu
 * @Date: 2019/7/2 21:50
 * @Description:
 */
@RestController
@RequestMapping("/area")
public class AreaController {

    @Autowired
    areaService areaService;

    /**
     * 功能描述:
     * 获取省市区树型菜单
     * @Author zhlu
     * @Description //TODO
     * @Date 2019/7/2 21:53
     */
    @GetMapping("/getAllAreaList")
    public List<Map<String,Object>> getAllAreaList(){
        return areaService.getAllAreaList();
    }

}
